<?php



namespace app\common\logic\cloud;

use app\common\logic\cloud\BaseCloudLogic;



class FrameCloudLogic extends BaseCloudLogic{

    

    public function getFrameV(){

        return $this->request('/platform/api/getFrameV');

    }

    

    public function getFrameFile($v){

        $dir = root_path().'frame/'.$v;

        if(!is_dir($dir)){

            mkdir($dir,0777,true);

        }

        $file = $dir.'/'.$v.'.zip';

        return $this->download('/platform/api/getFrameFile',['v'=>$v],$file);

    }

    

    public function overFrameUpdate($v){

        return $this->request('/platform/api/overFrameUpdate', ['v'=>$v]);

    }

    

}